package com.yt.system.dao;

import com.yt.system.domain.History;
import com.yt.system.domain.WeekScore;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;

import java.util.Date;
import java.util.List;
import java.util.Map;

@Mapper
@Repository
public interface HistoryMapper {
    int deleteByPrimaryKey(Integer hid);

    int insert(History record);

    int insertSelective(History record);

    History selectByPrimaryKey(Integer hid);

    int updateByPrimaryKeySelective(History record);

    int updateByPrimaryKey(History record);

    //以下为新添加的-------------------------------------------------------
    List<History> selectByAid(Integer aid);

    List<History> selectAllHistory();

    List<History> selectByTime(Map map);

}